'use strict';

/** @type {import('sequelize-cli').Migration} */
module.exports = {
  async up(queryInterface, Sequelize) {
    // 删除phone字段
    await queryInterface.removeColumn('Users', 'phone');
  },

  async down(queryInterface, Sequelize) {
    // 回滚时重新添加phone字段
    await queryInterface.addColumn('Users', 'phone', {
      type: Sequelize.STRING,
      allowNull: true,
    });
  }
}; 